/* 主页index.html的样式表 */

/* 设置顶部导航条 */
/* 设置导航条外部容器 */
.top-navigation-bar {
    width: 100%;
    /* 设置背景颜色 */
    background-color: #333;
    /* 设置字体垂直居中 */
    height: 40px;
    line-height: 40px;
    /* 设置字体大小 */
    font-size: 12px;
    /* 设置字体颜色 */
    color: #B0B0B0;
}

/* 设置导航条inner */
.tnb-inner {
    height: 40px;
    background-color: #333;
}

/*设置超链接字体 */
.top-navigation-bar a {
    color: #B0B0B0;
    text-decoration: none;
}

/* 设置超链接hover */
.top-navigation-bar li:hover a {
    color: rgb(255, 255, 255);
}

/* 设置间隔条字体和间距 */
.line {
    color: #424242;
    margin-left: 0.5em;
    margin-right: 0.5em;
    margin-top: -1px;
}

/* 设置左侧导航条 */
.tnb-left ul li {
    float: left;
}

/* 设置二维码链接的position */
.app {
    position: relative;
}

/* 设置二维码弹出框上面的小三角 */
.app::after {
    content: " ";
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top: none;
    border-bottom-color: white;
    position: absolute;
    bottom: -12px;
    left: 11px;
    display: none;
}

/* 设置二维码弹出框 */
.qrcode {
    width: 124px;
    height: 0px;
    overflow: hidden;
    background-color: white;
    z-index: 1;
    line-height: 0;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    position: absolute;
    left: -42px;
    transition: height 0.3s;
    /* display: none; */
}

/* 设置二维码图片 */
.qrcode img {
    width: 90px;
    margin: 17px 17px;
}

/* 设置二维码下面的字体 */
.qrcode span {
    color: black;
    font-size: 15px;
}

/* 设置二维码和小三角的hover */
li:hover .app::after {
    display: block;
}

li:hover .qrcode {
    height: 148px;
    background-color: white;
    z-index: 1;
}

/* 设置右侧3小导航条 */
.tnb-right-user {
    float: right;
    margin-right: 26px;
}

.tnb-right-user ul li {
    float: left;
}

/* 设置购物车 */
.tnb-r-cart {
    background-color: #424242;
    float: right;
    position: relative;
}

/* 设置购物车超链接 */
.tnb-r-cart a {
    padding-left: 15px;
    padding-right: 20px;
}

/* 设置购物车具体信息 */
.cart-info {
    width: 316px;
    height: 0px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
    border-top: 0;
    line-height: 100px;
    position: absolute;
    left: -209px;
    transition: height 0.3s;
    z-index: 1;
}

.cart-info div {
    padding-left: 55px;
}

/* 设置购物车按钮的hover */
.tnb-r-cart:hover {
    background-color: white;
}

.tnb-r-cart:hover a {
    color: rgb(255, 103, 0);
}

.tnb-r-cart:hover .cart-info {
    height: 100px;
}

/* 设置in-head */
.in-head {
    height: 100px;
    line-height: 100px;
    /* background-color: aqua; */
    position: relative;
}

/* 设置左侧小米logo */
.left-logo {
    float: left;
}

.left-logo a {
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    margin-top: 22.5px;
    background-image: url(../img/小米logo.jpeg);
    background-size: 56px 56px;
    background-position: center;
    border-radius: 20px 20px;
}

/* 设置中间导航栏 */
.midden-list {
    width: 850px;
    height: 100px;
    float: left;
    line-height: 100px;

    /* background-color: bisque; */
}

/* 设置主要menu */
.menu {
    margin-left: 65px;

}

/* 设置menu的li */
.menu li {
    float: left;
    font-size: 16px;
    padding-right: 20px;
}

/* 设置menu的a */
.menu a {
    text-decoration: none;
    color: black;
}

/* 设置全部商品选项的隐藏 */
.ex {
    visibility: hidden;
}

.menu li:hover a {
    color: rgb(255, 103, 0);
}

.menu li:hover.ex a {
    color: black;
}

.head-wrapper {
    width: 100%;
    /* position: relative; */
    /* background-color: red; */
}

/* 设置菜单弹出层 */
.menu-list {
    width: 200%;
    height: 0;
    background-color: #fff;
    /* 让他相对于head-wrapper开启定位 */
    position: absolute;
    top: 100px;
    left: -120px;
    /* box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); */
    /* border-top: 1px solid rgb(224, 224, 224); */
    overflow: hidden;
    transition: height 0.3s;
    z-index: 1;
}

.menu .now:hover~.menu-list,
.menu-list:hover {
    height: 228px;
    /* background-color: blue; */
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgb(224, 224, 224);
}

/* 设置右侧的搜索框的容器 */
.right-research {
    width: 296px;
    height: 50px;
    float: right;
    /* background-color: aqua; */
    margin-top: 25px;
    line-height: 1;
    border: 1px solid rgb(224, 224, 224);
    transition: all 0.3s;
}

.right-research .search-inp {
    float: left;
    height: 50px;
    padding: 0;
    padding-left: 10px;
    border: none;
    width: 232px;
    font-size: 16px;
    outline: none;
}

.right-research .search-btn {
    float: left;
    height: 50px;
    width: 52px;
    padding: 0;
    border: none;
    border-left: 1px solid rgb(224, 224, 224);
    background-color: #fff;
    color: #616161;
    transition: all 0.2s;
}

/* 设置容器的hover */
.right-research:hover {
    border: 1px solid black;
}

.right-research:hover .search-btn {
    border-left: 1px solid black;
}

/* 设置按钮的hover */
.search-btn:hover {
    background-color: rgb(255, 103, 0);
    color: white;
}

/* 设置input获取焦点后的样式 */
.right-research .search-inp:focus {
    outline: 1px solid #ff6700;
}

.right-research .search-inp:focus+.search-btn {
    outline: 1px solid #ff6700;
}

/* 设置左侧菜单 */
.left-menu {
    position: absolute;
    visibility: visible;
    width: 234px;
    height: 460px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    left: 0px;
    padding-bottom: 20px;
    z-index: 1;
}

.left-menu>li {
    float: none;
    height: 42px;
    line-height: 42px;
    padding-left: 30px;
}

.left-menu>li:nth-child(1) {
    margin-top: 20px;
}

.left-menu>li>i {
    float: right;
    line-height: 42px;
}

/* 设置左侧菜单的hover */
.left-menu>li:hover {
    background-color: rgb(255, 103, 0);
}

/* 设置中间的banner */
.banner {
    height: 460px;
    width: 1226px;
    position: relative;
}

.img-list li {
    position: absolute;
}

.img-list img {
    width: 1226px;
    height: 480px;
    vertical-align: top;
}

/* 设置四个小点点 */
.pointer {
    position: absolute;
    bottom: 0;
    right: 0;
}

.pointer a {
    float: left;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: rgba(0, 0, 0, .4) solid 2px;
    color: red;
    margin-right: 6px;
}

.pointer a:hover {
    background-color: rgba(255, 255, 255, .4);
}

.pointer a.active {
    background-color: rgba(255, 255, 255, .4);
}

/* 设置轮播图左右箭头 */
.bef-aft a {
    width: 42px;
    height: 69px;
    /* background-color: red; */
    background-image: url(../img/icon-slides.png);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.bef-aft .bef {
    left: 234px;
    background-position: -86px;
}

.bef-aft .aft {
    right: 0;
    background-position: -124px;
}

.bef-aft .bef:hover {
    background-position: 0;
}

.bef-aft .aft:hover {
    background-position: -43px;
}

/* 设置右下角的回到顶部导航条 */
.to-top {
    width: 26px;
    height: 206px;
    background-color: white;
    position: fixed;
    bottom: 1%;
    right: 20%;
    margin-right: -238px;
}

.to-top li {
    width: 26px;
    height: 40.2px;
    line-height: 40.2px;
    border: 1px solid rgb(224, 224, 224);
    margin-top: -1px;
    text-align: center;
}
.to-top li i{
    color: rgb(153,153,153);
}
.to-top li:hover i {
    color: rgb(245, 104, 7);
}

/* 设置第一个按钮的弹出层 */
.mobile-qr-wrapper {
    position: relative;
}
/* 设置弹出层里面的二维码 */
.mobile-qr {
    width: 130px;
    height: 190px;
    background-image: url(../img/miApp-qrcode.png);
    background-repeat: no-repeat;
    background-color: white;
    background-size: 100px;
    background-position: 15px 20px;
    position: absolute;
    top: 0;
    left: -144px;
    transition: all 0.2s;
    display: none;
}
/* 设置弹出层里面的文字 */
.mobile-qr .text-one {
    font-size: 14px;
    width: 82px;
    height: 42px;
    line-height: 18px;
    margin-top: 140px;
    margin-left: 24px;
}
/* 设置弹出层侧边小三角 */
.triangle-first {
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: white;
    position: absolute;
    top: 12px;
    right: -8px;
}
/* 设置第一个按钮的hover */
.mobile-qr-wrapper:hover .mobile-qr{
    display: block;
}
.mobile-qr:hover{
    display: block;
}


/* 设置下部广告区域 */
.ad {
    height: 170px;
    /* background-color: #bfa; */
    margin-top: 34px;
}

.ad .shortcut {
    float: left;
}

.ad .ad-img {
    float: left;
}

.ad li {
    float: left;
}

/* 设置左侧六个快捷方式 */
.ad .shortcut {
    width: 234px;
    height: 168px;
    background-color: #5f5750;
    margin-right: 14px;
    padding-top: 2px;
}

.shortcut a {
    color: #cfccca;
    display: block;
    text-decoration: none;
    font-size: 12px;
    width: 76px;
    height: 84px;
    text-align: center;
    overflow: hidden;
}

.shortcut i {
    display: block;
    margin-top: 20px;
    margin-bottom: 7px;
}

.ad .shortcut li {
    position: relative;
}

/* 设置上边框 */
.ad .shortcut li::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 1px;
    background-color: #665e57;
    right: 0;
    left: 0;
    margin: 0 auto;
}

/* 设置左边框 */
.ad .shortcut li::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 70px;
    background-color: #665e57;
    top: 0;
    bottom: 0;
    margin: auto 0;
    left: 0;

}

.shortcut a:hover {
    color: white;
}

/* 设置右侧三个广告图 */
.ad .ad-img li {
    width: 316px;
    margin-right: 15px;
}

.ad .ad-img li:last-child {
    margin-right: 0;
}

.ad .ad-img img {
    width: 100%;
}